/**
 * app，启动页
 */
import React, {useEffect} from 'react';
import {Image, View, StyleSheet, StatusBar, Text} from 'react-native';

import {STARTBJ} from '../../image';
import {
  windowWidth,
  windowHeight,
  windowStatusBarHeight,
} from '../../utils/commonUtils';

export const Start = ({navigation}) => {
  useEffect(() => {
    setTimeout(() => {
      navigation.replace('Guide');
    }, 3000);
  }, [navigation]);
  return (
    <View>
      <StatusBar
        translucent={true}
        backgroundColor="transparent"
        barStyle={'dark-content'}
      />
      <Image source={STARTBJ} style={styles.start_bj} resizeMode={'stretch'} />
    </View>
  );
};
const styles = StyleSheet.create({
  start_bj: {
    width: windowWidth,
    height: windowHeight + windowStatusBarHeight,
  },
});
